www.gusucode.com > 落叶冰点万能企业网站内容管理系统 V9.1 > 落叶冰点万能企业网站内容管理系统 V9.1\code\admin\adminLabel\D_edit_custom_label.asp

    
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>


<LINK href="../css.css" type=text/css rel=stylesheet>
<%

dir_set="../../"

response.charset="gb2312"
%>
<%


'**************************************************************
' 新动软网站管理系统
' 官方网站: http://www.aspcpu.com
' 系统作者: 阮丁远(网名:天下程序)
' Copyright 新动软网站管理系统 版权所有
'**************************************************************


%>



<!--#include file=../../inc/conn.asp-->
<!--#include file=../../inc/Functionb.asp-->

<!--#include file=../../inc/ajaxLIB.asp-->

<!--#include file=../inc/checkadmin2.asp-->

<!--#include file=../../inc/functionFiless.asp-->

<!--#include file=../../inc/ND_class_function.asp-->




<%
AJAXshowLoader()


%>























<!------------------------------------------------div:new2 mode_select------------------------>



<div  id="newssss2" style="filter:blendTrans(duration=1);left:1px;top:1px; visibility:hidden;display:none;width:200px; z-index:2; border: 1px dashed #999999;">


<table width="670" height="307"  border="1" cellpadding="0" cellspacing="0" bgcolor="#cccccc" bordercolor="#333333">


<tr><td height="20" width=450 background="../images/titbg.gif" bordercolor="#333333">
选择编辑模式 
</td><td height="20" background="../images/titbg.gif" bordercolor="#333333">
<!--a href=# onclick="closen2();">关闭</a-->
</td></tr>

<tr><td colspan=3>


<!--
&nbsp;
&nbsp;
&nbsp;
&nbsp;
&nbsp;
&nbsp;
&nbsp;
&nbsp;

1.<a href="D_edit_custom_asp_label.asp?edittype=0&fname=<%=request("fname")%>">进入代码视图编辑模式(可能乱码)</a><br><br-->
&nbsp;
&nbsp;
&nbsp;
&nbsp;
&nbsp;
&nbsp;
&nbsp;
&nbsp;

2.<a href="D_edit_custom_asp_label.asp?edittype=1&fname=<%=request("fname")%>">进入可视化编辑模式</a><br><br>

&nbsp;
&nbsp;
&nbsp;
&nbsp;
&nbsp;
&nbsp;
&nbsp;
&nbsp;

3.自己手动用dreamweaver打开本系统的/Label/custom_Label/<%=left(request("fname"),len(request("fname"))-1)%>文件来编辑




</td></tr>





</table>


</div>
<!----------------------------end------div:new2  mode_select------------------------>


<script language="javascript">

function show_a(){


AJAXfade(1,'newssss2')

document.bgColor ="#eeeeee";


}






</script>











<%

ss4=request("fname")
ss4=left(ss4,len(ss4)-1) '去掉最后一个/号


dddd=loadfile("../../Label/custom_Label/"&ss4)


call get_info_array_from_label_file_content(dddd)



if err1=1 then

%>

<script language="javascript">
alert("此标签文件已损坏,无法编辑");
history.go(-1);
</script>
<%

response.end
else



'response.write "type:"&nd1_label_type&"<br>"
'response.write "name:"&nd1_l_name&"<br>"
'response.write "sql:"&nd1_label_sql&"<br>"
'response.write "params:"&nd1_label_params&"<br>"
'response.write "fenye:"&nd1_label_fenye_num&"<br>"
'response.write "beizhu:"&nd1_label_beizhu&"<br>"
'response.write "other_params:"&nd1_other_params&"<br>"
'response.write "is_sys:"&nd1_is_sys_label&"<br>"
'response.write  nd1_label_code


if nd1_l_name="" or nd1_is_sys_label="" then
%>



<script language="javascript">
alert("此标签文件已损坏,无法编辑----is_sys_label为空或label_name为空");
history.go(-1);
</script>




<%
else



if nd1_label_type="asp_label" then




%>
<script language="javascript">

show_a();

</script>




<%



else

if nd1_label_type="loop_label_one_loop" then


if nd1_label_sql=""  then

%>

<script language="javascript">
alert("label_sql为空-----此标签文件已损坏,无法编辑");
history.go(-1);
</script>



<%
else


response.redirect "D_edit_custom_cont_loop_label.asp?fname="&request("fname")&"&loopnum=1"

end if


else




if nd1_label_type="loop_label_two_loop" then


if nd1_label_sql=""  then

%>

<script language="javascript">
alert("label_sql为空-----此标签文件已损坏,无法编辑");
history.go(-1);
</script>



<%
else


response.redirect "D_edit_custom_cont_loop_label.asp?fname="&request("fname")&"&loopnum=2"

end if




else

if nd1_label_type="dyn_content_label" then

if nd1_label_sql=""  then

%>

<script language="javascript">
alert("label_sql为空-----此标签文件已损坏,无法编辑");
history.go(-1);
</script>



<%
else


response.redirect "D_edit_custom_dyn_content_lable.asp?fname="&request("fname")

end if




else




%>


<script language="javascript">
alert("未知的标签类型-----此标签文件已损坏,无法编辑");
history.go(-1);
</script>



<%


end if

end if

end if
end if




end if
end if
%>


<%
AJAXcloseLoader()
%>